

/**
 * 页面初始化
 */
$(function () {
    var orderId = $('#myid', window.parent.document).val();
    // var orderId = extractParam("orderId");
    var ifmSrc = "/views/base/note/notelist.html?busiKey=" + orderId;
    $("#noteIframe").attr("src",ifmSrc);

    $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {

        switch ($(this).attr("id")) {
            case "noteInfoTabLink":{

                window.frames["noteIframe"].window.$noteTable.ajax.reload().draw();
                break;
            }

        };
    });

});


function extractParam(paramName) {
    var returnString = "";
    var str = window.location.search;
    if (!!str) {
        returnString = GetArgsFromHref(str, paramName);
    }
    return returnString;
}
